package com.lz.yz.member.service.impl;

import com.lz.yz.member.dao.FeedbackMapper;
import com.lz.yz.member.entity.Feedback;
import com.lz.yz.member.service.FeedbackService;
import org.apache.ibatis.exceptions.TooManyResultsException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Condition;

import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author gaoran
 * @create 2017-12-18 14:02
 **/
@Service
public class FeedbackServiceImpl  implements FeedbackService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private FeedbackMapper feedbackMapper;


    @Override
    public Feedback findById(Integer id) {
        return feedbackMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Feedback> findAll() {
        return feedbackMapper.selectAll();
    }
}
